<div class="row-fluid">
	<div class="span11 offset1">
		<form action="<?php echo BASE_URL?>depot-management/edit" method="post" class="form-horizontal">
			<div class="control-group">
				<label class="control-label" for="provinceName">Province Name</label>
				<div class="controls">
					<select name="" class="input-large" id="provinceName" required>
						<option value="">Select Province</option>
						<?php 
							foreach ($provinces as $province){
								echo '<option value="' . $province -> id . '"' . ($record -> province_id == $province -> id?" selected='selected'":'') . '>' . $province -> province_name . '</option>';
							}
						?>
					</select>					
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="districtName">District Name</label>
				<div class="controls">
					<select name="data[depot][district_id]" id="districtName" class="input-large" required>
						<option value="">Select District</option>
						<?php 
							foreach ($districts as $district){
								echo '<option value="' . $district -> id . '"' . ($record -> district_id == $district -> id?" selected='selected'":'') . '>' . $district -> district_name . '</option>';
							}
						?>
					</select>
				</div>
			</div>
			 <div class="control-group">
				<label class="control-label" for="depotName">Depot Name</label>
				<div class="controls">
					<input type="text" id="depotName" placeholder="Dictrict Name" name="data[depot][depot_name]" class="input-xxlarge" value="<?php echo $record -> depot_name; ?>" required>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="truckNumber">Truck Number</label>
				<div class="controls">
					<input type="text" id="truckNumber" placeholder="Truck Number" name="data[depot][truck_number]" class="input-xxlarge" value="<?php echo $record -> truck_number; ?>" required>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="tankNumber">Tank Number</label>
				<div class="controls">
					<input type="text" id="tankNumber" placeholder="Tank Number" name="data[depot][tank_number]" class="input-xxlarge" value="<?php echo $record -> tank_number; ?>" required>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="amountOfSell">Amount Of Sell</label>
				<div class="controls">
					<input type="text" id="amountOfSell" placeholder="Amount Of Sell" name="data[depot][amount_of_sell]" class="input-xxlarge" value="<?php echo $record -> amount_of_sell; ?>" required>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="percentage">Percentage</label>
				<div class="controls">
					<input type="text" id="percentage" placeholder="Percentage" name="data[depot][percentage]" class="input-xxlarge" value="<?php echo $record -> percentage; ?>" required>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="note">Noted</label>
				<div class="controls">
					<textarea cols="20" rows="5" id="note" name="data[depot][note]" class="span9"><?php echo $record -> note; ?></textarea>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn">Update</button>
					<button type="button" class="btn" onclick="javascript:history.go(-1)">Cancel</button>
				</div>
			</div>
			<input type="hidden" name="data[depot][id]" value="<?php echo $record -> id; ?>">
		</form>
	</div>
</div>

